<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
</head>
<body>
<form th:action="@{/reg}" method="post">
    <label>用户名：</label>
    <input type="text" name="username">
    <br>
    <label>密&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
    <input type="password" name="password">
    <br>
    <input type="submit" value="注册">
    <input type="reset" value="重置" style="margin-left: 20px">
</form>
<a th:href="@{/index}" th:text="回到主页"></a>
<a th:href="@{/toLogin}" th:text="返回登录"></a>
</body>
</html>